import {getLocalStore,setLocalStore} from "../../utils/store";

const school = {
  state: {
    schoolName: getLocalStore('schoolName') || '',
    schoolId: getLocalStore('schoolId') || '',
  },
  mutations: {
    SET_SCHOOL: (state,school) =>{
      state.schoolName = school.school_name;
      state.schoolId = school.school_id;
      setLocalStore('schoolName',school.school_name)
      setLocalStore('schoolId', school.school_id)
    }
  }
}
export default school
